﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Arith.Property
{
    class Student2
    {
        private int _roll;
        private string _name;

        public int Roll //property
        {
            set
            {
                if (value > 0)
                    _roll = value;
            }
            get
            {
                return _roll;
            }
        }
        public string Name //property
        {
            set
            {
                _name = value;
            }
            get
            {
                return _name;
            }
        }
    }
}

